<?php
/**
 * Created by PhpStorm.
 * User: Kau
 * Date: 2017/12/11
 * Time: 22:20
 */

use yii\helpers\Html;

?>
<?php foreach ($comments as $comment): ?>

<div class="comment">
    <div class="row">
        <div class="col-md-12">
            <div class="comment-detail">
                <p class="bg-info">
                    <span class="glyphicon glyphicon-user" aria-hidden="true"></span>
                    <em><?= Html::encode($comment->user->username); ?>：</em>
                    <br />
                    <?= nl2br($comment->content); ?>
                    <br />
                    <span class="glyphicon glyphicon-time" aria-hidden="true"></span>
                    <em><?= date('Y-m-d H:i:s', $comment->create_time); ?>；</em>
                </p>
            </div>
        </div>
    </div>
</div>


<?php endforeach;?>
